package com.shengde.jinwawaforleader.network.protocolbean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by Chason on 2016/10/25.
 */

public class ProTeacherInfo{

    /**
     * code : 0
     * teacher : [{"educationUniversity":"","gender":"1","educationType":"2","entryDate":1477324800000,"teacher_ID":965,"parent_ID":6,"name":"刘老师","duty":"","cContact":"13188888888","title":"","birthDate":1477324800000,"institution_ID":52}]
     */

    private int code;
    /**
     * educationUniversity :
     * gender : 1
     * educationType : 2
     * entryDate : 1477324800000
     * teacher_ID : 965
     * parent_ID : 6
     * name : 刘老师
     * duty :
     * cContact : 13188888888
     * title :
     * birthDate : 1477324800000
     * institution_ID : 52
     */

    private ArrayList<TeacherEntity> teacher;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ArrayList<TeacherEntity> getTeacher() {
        return teacher;
    }

    public void setTeacher(ArrayList<TeacherEntity> teacher) {
        this.teacher = teacher;
    }

    public static class TeacherEntity implements Parcelable{
        private String educationUniversity;
        private String gender;
        private String educationType;
        private long entryDate;
        private int teacher_ID;
        private int parent_ID;
        private String name;
        private String duty;
        private String cContact;
        private String title;
        private long birthDate;
        private int institution_ID;

        protected TeacherEntity(Parcel in) {
            educationUniversity = in.readString();
            gender = in.readString();
            educationType = in.readString();
            entryDate = in.readLong();
            teacher_ID = in.readInt();
            parent_ID = in.readInt();
            name = in.readString();
            duty = in.readString();
            cContact = in.readString();
            title = in.readString();
            birthDate = in.readLong();
            institution_ID = in.readInt();
        }

        public static final Creator<TeacherEntity> CREATOR = new Creator<TeacherEntity>() {
            @Override
            public TeacherEntity createFromParcel(Parcel in) {
                return new TeacherEntity(in);
            }

            @Override
            public TeacherEntity[] newArray(int size) {
                return new TeacherEntity[size];
            }
        };

        public String getEducationUniversity() {
            return educationUniversity;
        }

        public void setEducationUniversity(String educationUniversity) {
            this.educationUniversity = educationUniversity;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getEducationType() {
            return educationType;
        }

        public void setEducationType(String educationType) {
            this.educationType = educationType;
        }

        public long getEntryDate() {
            return entryDate;
        }

        public void setEntryDate(long entryDate) {
            this.entryDate = entryDate;
        }

        public int getTeacher_ID() {
            return teacher_ID;
        }

        public void setTeacher_ID(int teacher_ID) {
            this.teacher_ID = teacher_ID;
        }

        public int getParent_ID() {
            return parent_ID;
        }

        public void setParent_ID(int parent_ID) {
            this.parent_ID = parent_ID;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDuty() {
            return duty;
        }

        public void setDuty(String duty) {
            this.duty = duty;
        }

        public String getCContact() {
            return cContact;
        }

        public void setCContact(String cContact) {
            this.cContact = cContact;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public long getBirthDate() {
            return birthDate;
        }

        public void setBirthDate(long birthDate) {
            this.birthDate = birthDate;
        }

        public int getInstitution_ID() {
            return institution_ID;
        }

        public void setInstitution_ID(int institution_ID) {
            this.institution_ID = institution_ID;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(educationUniversity);
            dest.writeString(gender);
            dest.writeString(educationType);
            dest.writeLong(entryDate);
            dest.writeInt(teacher_ID);
            dest.writeInt(parent_ID);
            dest.writeString(name);
            dest.writeString(duty);
            dest.writeString(cContact);
            dest.writeString(title);
            dest.writeLong(birthDate);
            dest.writeInt(institution_ID);
        }
    }
}
